<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on supplement</title>
</head>
<body>
    <div id="app">
        <input type="button" value="print" @click="print">
        <input type="button" value="print" @click="print('666','shabi')">
        <input type="text" @keyup.enter="print2">
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:"#app",
            methods:{
                print:function (p1,p2) {
                    console.log('hello');
                    console.log(p1);
                    console.log(p2);
                },
                print2:function () {
                    alert('do you eating?')
                }
            }
        })
    </script>
</body>
</html>